/*
 * @desc:
 * @LastEditTime: 2022-10-23 11:06:08
 * @params:
 * @return::
 */
import { App } from "vue";
import longpress from "./modules/longpress";

const directivesList: any = {
	// Custom directives 下面的指令加上 v- 就可以用了
	longpress
};

const directives = {
	install: function (app: App<Element>) {
		Object.keys(directivesList).forEach(key => {
			// 注册所有自定义指令
			app.directive(key, directivesList[key]);
		});
	}
};

export default directives;
